package put.cs.two.hied.netflix;

/**
 * @author Mateusz Chrominski
 * 
 */
public class TrainingSetEntry {
    private String userId;

    private String rating;

    private String date;

    private int movieId;

    public TrainingSetEntry(String movieId) {
        this.movieId = Integer.parseInt(movieId);
    }

    public Integer getUserId() {
        return Integer.parseInt(userId);
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRating() {
        return rating;
    }

    public void setRating(String rating) {
        this.rating = rating;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public int getMovieId() {
        return movieId;
    }

    /*
     * (non-Javadoc)
     * 
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return userId + "," + rating + "," + date;
    }

    public String printWithoutRating() {
        return userId + "," + date;
    }
    
    public String printWithMovieIdAndRating() {
    	return movieId + "," + userId + "," + rating + "," + date;
    }
}